package com.fulihui.information.dal.dataobj;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;

import java.io.Serializable;
import java.util.Date;

import static com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant.*;

@Table("info_comments")
public class InfoComments implements Serializable {
    @Column(name = "id", type = INT)

    private Long id;
    @Column(name = "discuss_id", type = INT)
    private Long discussId;
    @Column(name = "user_id", type = VARCHAR)

    private String userId;
    @Column(name = "user_face", type = VARCHAR)

    private String userFace;
    @Column(name = "user_nickname", type = VARCHAR)

    private String userNickname;
    @Column(name = "to_user_id", type = VARCHAR)

    private String toUserId;
    @Column(name = "to_user_face", type = VARCHAR)

    private String toUserFace;
    @Column(name = "to_user_nickname", type = VARCHAR)

    private String toUserNickname;
    @Column(name = "news_id", type = VARCHAR)

    private String newsId;
    @Column(name = "news_digest", type = VARCHAR)

    private String newsDigest;
    @Column(name = "content", type = VARCHAR)

    private String content;
    @Column(name = "discuss_time", type = DATETIME)
    private Date discussTime;
    @Column(name = "is_leaf", type = VARCHAR)

    private String isLeaf;
    @Column(name = "is_delete", type = VARCHAR)

    private String isDelete;
    @Column(name = "fabulous_count", type = INT)

    private Long fabulousCount;

    @Column(name = "comment_status", type = VARCHAR)
    private String commentStatus;
    @Column(name = "operator", type = VARCHAR)

    private String operator;
    @Column(name = "gmt_create", type = DATETIME)

    private Date gmtCreate;
    @Column(name = "gmt_modified", type = DATETIME)

    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDiscussId() {
        return discussId;
    }

    public void setDiscussId(Long discussId) {
        this.discussId = discussId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserFace() {
        return userFace;
    }

    public void setUserFace(String userFace) {
        this.userFace = userFace;
    }

    public String getUserNickname() {
        return userNickname;
    }

    public void setUserNickname(String userNickname) {
        this.userNickname = userNickname;
    }

    public String getToUserId() {
        return toUserId;
    }

    public void setToUserId(String toUserId) {
        this.toUserId = toUserId;
    }

    public String getToUserFace() {
        return toUserFace;
    }

    public void setToUserFace(String toUserFace) {
        this.toUserFace = toUserFace;
    }

    public String getToUserNickname() {
        return toUserNickname;
    }

    public void setToUserNickname(String toUserNickname) {
        this.toUserNickname = toUserNickname;
    }

    public String getNewsId() {
        return newsId;
    }

    public void setNewsId(String newsId) {
        this.newsId = newsId;
    }

    public String getNewsDigest() {
        return newsDigest;
    }

    public void setNewsDigest(String newsDigest) {
        this.newsDigest = newsDigest;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getDiscussTime() {
        return discussTime;
    }

    public void setDiscussTime(Date discussTime) {
        this.discussTime = discussTime;
    }

    public String getIsLeaf() {
        return isLeaf;
    }

    public void setIsLeaf(String isLeaf) {
        this.isLeaf = isLeaf;
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    public Long getFabulousCount() {
        return fabulousCount;
    }

    public void setFabulousCount(Long fabulousCount) {
        this.fabulousCount = fabulousCount;
    }

    public String getCommentStatus() {
        return commentStatus;
    }

    public void setCommentStatus(String commentStatus) {
        this.commentStatus = commentStatus;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", discussId=").append(discussId);
        sb.append(", userId=").append(userId);
        sb.append(", userFace=").append(userFace);
        sb.append(", userNickname=").append(userNickname);
        sb.append(", toUserId=").append(toUserId);
        sb.append(", toUserFace=").append(toUserFace);
        sb.append(", toUserNickname=").append(toUserNickname);
        sb.append(", newsId=").append(newsId);
        sb.append(", newsDigest=").append(newsDigest);
        sb.append(", content=").append(content);
        sb.append(", discussTime=").append(discussTime);
        sb.append(", isLeaf=").append(isLeaf);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", fabulousCount=").append(fabulousCount);
        sb.append(", commentStatus=").append(commentStatus);
        sb.append(", operator=").append(operator);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}